package com.murray.assignment.service;

import com.murray.assignment.pojo.Address;
import com.murray.assignment.pojo.Orders;

import java.util.List;

public interface OrderService {
    Integer addOrder(Orders orders);

    Integer addOrder(Orders orders, Integer cartId);

    Integer updateOrderState(Integer orderId);

    Address selectAddressByOrderId(Integer orderId);

    List<Orders> selectOrdersByUserId(Integer userId);
}
